package com.issac.json.controller;

import com.issac.json.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@RestController
public class UserController {
    @GetMapping("/user")
    public List<User> findAll(){
        List<User> users = new ArrayList<>();
        for (int i = 0;i < 10 ;i++){
            users.add(new User(1,"sb"+i,"issac"+i,new Date()));
        }
        return users;
    }
}
